#include "matrix.h"
#include "EasyBMP.h"
#include <assert.h>
Go to the source code of this file.
- Author
- Mikhail Agranovskiy, 321, cs msu
Implementation of convolution filter
- Parameters
-
src_image | src image |
kernel | convolution kernel |
- Returns
- result of usage of the filter
template<typename T >
Matrix<T> extraMatrix |
( |
const Matrix< T > & |
src, |
|
|
uint |
newNRows, |
|
|
uint |
newNCols |
|
) |
| |
Перед разбиением на клетки изображение расширяется так, чтобы поделиться нацело. Ввыброно дополнение константой (конкретно, нулем) – чтобы вклад краев не превосходил вклад других клеток.
- Parameters
-
- Returns
Matrix<double> grayscale |
( |
BMP & |
img | ) |
|
Calulate grayscale image.
- Parameters
-
- Returns
- grayscale matrix